package com.usdt.system.service.impl.cp;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usdt.system.domain.cp.CallbackRecordEntity;
import com.usdt.system.domain.cp.VisitRecordEntity;
import com.usdt.system.mapper.cp.CallbackRecordMapper;
import com.usdt.system.service.cp.CallbackRecordService;

/**
 * <p>
 * 回访-记录 服务实现类
 * </p>
 *
 * @author L
 * @since 2025-10-05
 */
@Service
public class CallbackRecordServiceImpl extends ServiceImpl<CallbackRecordMapper, CallbackRecordEntity> implements CallbackRecordService {

	@Override
	public List<CallbackRecordEntity> getCallbackRecordByVisitId(Integer visitId) {
		QueryWrapper<CallbackRecordEntity> query = new QueryWrapper<CallbackRecordEntity>();
		query.eq("is_del", false).eq("visit_id", visitId).orderByDesc("id");
		
		return baseMapper.selectList(query);
	}

}
